#pragma once

#include "../comProtocol.h"
#include "winsock.h"
#include <string>

using namespace std;

//trida, ktera realizuje listener na serveru a zpracovava odpovedi klientu
class ComServer {
public:
	ComServer();
	~ComServer();

	int Listen(string ip, int port);
	int SendData(ComData data, int client);
	int RecieveData(ComData* data, int client);

private:
	int port;
	SOCKET clients[2];
};